<?php

/**
 * Description of Notifications
 *
 * @author ghanemel
 */
class notifs extends CI_Controller {

    public function __construct() {
        parent::__construct();
        if ($this->session->userdata('logged_in_user')) {
            $this->logged_in = TRUE;
        } else {
            redirect('Login/', 'refresh');
        }
        $this->load->model('Dao');
        $this->load->helper('date');
    }

    public function notifs_details() {
        $user_id = $this->session->userdata('logged_in_user')->id;
        json_encode($this->Dao->findNotifsForUser($user_id));
    }

}

?>
